package com.ymatou.iapi.sellerproduct.service;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

public class GetProductTemplateCall extends YmatouAutoTestCall{

	private static String opurl ="/api/SellerProduct/GetProductTemplate";
	
	public GetProductTemplateCall() {
		super(EnvSetup.getSystemUrl("sellerproduct_iapi"),opurl,"GET","JSON");
	}
	@Override
	public void addDefHeader() {
	}
	
	public JSONObject callAndGetReturnData(String  templateId){
		return callAndGetReturnData(MapUtil.hashMap("ProductTemplateId", templateId));
		
	}
	
	
	public static void main(String[] args) {
		System.out.println(new GetProductTemplateCall().callAndGetReturnData("8").toString());
	}

}
